package com.ztgf.commodity.models.bo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztgf.common.bo.BaseBO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-05-25 13:50
 * Description:
 */
@Data
public class BrandInfoBO extends BaseBO implements Serializable {

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图标")
    private String logoUrl;

    @ApiModelProperty(value = "首字母缩写")
    private String initials;

    @ApiModelProperty(value = "状态;0正常、1删除")
    private Integer status;

    @ApiModelProperty(value = "是否发布;0未发布，1发布")
    private Integer isPublish;

    @ApiModelProperty(value = "排序;默认倒序 ")
    private Integer sort;

    @ApiModelProperty(value = "排序类型 1降序 2升序")
    private String sortType;

    @ApiModelProperty(value = "制造商")
    private String manufacturer;

    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date startDate;

    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date endDate;
}
